/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.io.BufferedReader;
import java.io.FileReader;

/**
 * <p>Project: jse2303 - BufferedReaderDemo
 * <p>Powered by webrx On 2023-07-24 09:58:32
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class BufferedReaderDemo {
    public static void main(String[] args) {
        String src = "D:\\0703\\javase\\jse2303\\jse2303\\ch09\\src\\cn\\webrx\\Dir1.java";
        try (var is = new FileReader(src); var br = new BufferedReader(is);) {

            int i = 0;
            while (br.ready()) {
                System.out.printf("%d、%s%n", ++i, br.readLine());
            }

        } catch (Exception e) {

        }
    }
}
